<%= error_messages_for 'ticket' %>
<%= hidden_field 'ticket', 'id' %>
<table>
	<tr>
		<td>Priority</td>
		<td> : </td>
		<td><%= select 'ticket', 'priority', Ticket.priorities.collect { |key, value| [key.titleize, value]} %></td>
		<td></td>
	</tr>
	<tr>
			<td>Status</td>
			<td> : </td>
			<td><%= select 'ticket', 'status', @ticket.project.edit_states(current_user).collect { |key, value| [key.titleize, value]} %></td>
			<td></td>
	</tr>
	<tr>
			<td>Type</td>
			<td> : </td>
			<td><%= select 'ticket', 'ticket_type', @ticket.project.categories.collect {  |c| [c.name.titleize, c.id]} %></td>
			<td></td>
	</tr>
	<tr>
			<td>Owner</td>
			<td> : </td>
			<td><%= select 'ticket', 'owner_id',  @ticket.project.members.collect {|u| [u.login, u.id]}, {:include_blank => true} %>	</td>
			<td></td>
	</tr>
	
	<tr>
		<td>Tag's</td>
		<td> : </td>
		<td><%= text_field_tag 'tag_list', @tag_list %></td>
		<td>
			<div id="project_tags">
			<%= render :partial => '/project/tag_list' %>
			</div>
		</td>
	</tr>
	<tr>
			<td>Time spend</td>
			<td> : </td>
			<td><%= text_field 'ticket_reply', 'hours' %>	</td>
			<td></td>
	</tr>
	<tr>
		<td>Body</td>
		<td> : </td>
		<td><%= text_area :ticket_reply, 'body' %></td>
		<td>
			<%= some_html_explanation(); %>
		</td>
	</tr>
</table>